<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CaseDefinition.aspx.vb" Inherits="ccapps.CaseDefinition" %>
<%@ Register TagPrefix="cc1" Namespace="Library.WebControls" Assembly="lib" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>DefectDefinition</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="table1" style="BORDER-COLLAPSE: collapse" cellPadding="3" width="100%" border="0">
				<TR>
					<TD class="prompt" vAlign="middle" colSpan="2" height="35" rowSpan="1"><asp:label id="lblContextHeader" runat="server">[Message at this area will be created at runtime.]</asp:label></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Group</TD>
					<TD class="input"><asp:dropdownlist id="ddlGroup" runat="server" Width="300px" Enabled="False">
							<asp:ListItem Value="0">Select</asp:ListItem>
						</asp:dropdownlist></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Case Type</TD>
					<TD class="input"><asp:dropdownlist id="ddlType" runat="server" Width="300px" onchange="setHeader(this.item(this.selectedIndex).text)"></asp:dropdownlist></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120"><asp:label id="lblCaseItemID" runat="server">DCR ID</asp:label></TD>
					<TD class="input"><asp:textbox id="txtCaseItemID" runat="server" Width="300px" MaxLength="30"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="Requiredfieldvalidator6" runat="server" Display="Dynamic" ControlToValidate="txtArea"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Area</TD>
					<TD class="input"><asp:textbox id="txtArea" runat="server" Width="300px" MaxLength="10"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="rfvArea" runat="server" Display="Dynamic" ControlToValidate="txtArea" ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Estimated Time</TD>
					<TD class="input"><asp:textbox id="txtEstimatedTime" runat="server" Width="300px" MaxLength="30"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="txtEstimatedTime"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Description</TD>
					<TD class="input"><asp:textbox id="txtDesciption" runat="server" Width="300px" TextMode="MultiLine" Height="64px"
							MaxLength="500"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="txtDesciption"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Status</TD>
					<TD class="input"><asp:dropdownlist id="ddlStatus" runat="server" Width="300px" Enabled="False"></asp:dropdownlist>&nbsp;</TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Reason</TD>
					<TD class="input"><asp:textbox id="txtReason" runat="server" Width="300px" MaxLength="100"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" Display="Dynamic" ControlToValidate="txtReason"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Production Date</TD>
					<TD class="input"><asp:textbox id="txtProductionDate" runat="server" Width="300px" MaxLength="30"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" Display="Dynamic" ControlToValidate="txtProductionDate"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Release</TD>
					<TD class="input"><asp:textbox id="txtRelease" runat="server" Width="300px" MaxLength="30"></asp:textbox>&nbsp;
						<asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" Display="Dynamic" ControlToValidate="txtRelease"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Attachment</TD>
					<TD class="input"><INPUT id="fuAttachment" style="WIDTH: 300px" type="file" runat="server">&nbsp;
						<asp:requiredfieldvalidator id="rfvAttachment" runat="server" Display="Dynamic" ControlToValidate="fuAttachment"
							ErrorMessage="* Fill-in!"></asp:requiredfieldvalidator></TD>
				</TR>
				<TR>
					<TD class="solbaslik" width="120">Notes</TD>
					<TD class="input"><asp:textbox id="txtNotes" runat="server" Width="300px" TextMode="MultiLine" Height="64px" MaxLength="500"></asp:textbox></TD>
				</TR>
			</TABLE>
			<br>
			<asp:label id="Lblok" runat="server" Width="608px" Height="14px" Font-Names="Tahoma" Font-Bold="True"
				ForeColor="#C00000" Font-Size="10pt"></asp:label><BR>
			<cc1:contentpanefooter id="ContentPaneFooter1" runat="server" Width="100%" NavigateBackText="Management"
				ConfirmText="Create Case" ButtonsCssclass="button01" CssClass="nav" NavigateBackClientFunction="javascript:location.href='CaseContextManagement.aspx';"></cc1:contentpanefooter><asp:textbox id="txtTemp" runat="server">Requires to value not to be null!</asp:textbox></form>
		<script language="javascript">
		
		setHeader(document.all['ddlType'].item(document.all['ddlType'].selectedIndex).text);
		
		function setHeader(caseTypeName)
		{
			document.body.all[1].rows[0].cells[0].all[0].rows[0].cells[1].innerText = caseTypeName + ' Case Definition';
			document.all['lblContextHeader'].innerText = 'Please fill-in ' + caseTypeName + ' details and click Save.';
			document.all['lblCaseItemID'].innerText = caseTypeName + ' ID';
			document.all['rfvAttachment'].controltovalidate = (caseTypeName == 'InfoRequest' ? 'txtTemp' : 'fuAttachment');
		}
		
		</script>
	</body>
</HTML>
